<template>
  <div>
    <button @click="showModal = true">打开弹窗</button>
    <DraggableModal v-model="showModal">
      <template #header>自定义标题</template>
      这是自定义内容
    </DraggableModal>
  </div>
</template>

<script setup>
import { ref } from 'vue';
import DraggableModal from './DraggableModal.vue';

const showModal = ref(false);
</script>